package cn.jzq.demo.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("general_class")
public class GeneralClass extends Model<GeneralClass> {

    @TableId
    private Integer id;

    private String name;

    private Date createTime;

    private Date updateTime;

    public GeneralClass(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
